import request from '@/utils/request'

// 获取全部权限列表数据
export const sysPermisson = () => {
  return request({
    url: '/sys/permission'
  })
}
// 新增权限点
export const sysPermissionPost = data => {
  return request({
    url: '/sys/permission',
    method: 'post',
    data
  })
}
// 修改权限点
export const sysPermissionPut = data => {
  return request({
    url: `/sys/permission/${data.id}`,
    method: 'put',
    data
  })
}
// 删除权限点
export const sysPermissionDelete = id => {
  return request({
    url: `/sys/permission/${id}`,
    method: 'delete',
    id
  })
}
